// import com.alibaba.druid.sql.ast.SQLExpr;
// import com.alibaba.druid.sql.ast.SQLLimit;
// import com.alibaba.druid.sql.ast.SQLOrderBy;
// import com.alibaba.druid.sql.dialect.mysql.visitor.MySqlASTVisitor;

#include "MySqlShowDsStatement.h"
#include "../../../../ast/SQLExpr.h"
#include "../../../../ast/SQLLimit.h"
#include "../../../../ast/SQLOrderBy.h"
#include "../../visitor/MySqlASTVisitor.h"

SQLLimit_ptr MySqlShowDsStatement::getLimit()
{
  return limit;
}

void MySqlShowDsStatement::setLimit(SQLLimit_ptr limit)
{
  this->limit = limit;
}

SQLOrderBy_ptr MySqlShowDsStatement::getOrderBy()
{
  return orderBy;
}

void MySqlShowDsStatement::setOrderBy(SQLOrderBy_ptr orderBy)
{
  this->orderBy = orderBy;
}

SQLExpr_ptr MySqlShowDsStatement::getWhere()
{
  return where;
}

void MySqlShowDsStatement::setWhere(SQLExpr_ptr where)
{
  this->where = where;
}

void MySqlShowDsStatement::accept0(MySqlASTVisitor_ptr visitor)
{
  if (visitor->visit(SharedObject(MySqlShowDsStatement)))
  {
    acceptChild(visitor, where);
    acceptChild(visitor, orderBy);
    acceptChild(visitor, limit);
  }
  visitor->endVisit(SharedObject(MySqlShowDsStatement));
}
